#ifndef NUC_COMMUNICATION_H
#define NUC_COMMUNICATION_H
typedef struct 
{
    enum{
        Red_team=0,
        Blue_team=1,
    }Team;
} STM32_data_t;
typedef struct
{
    float set_pitch;
    float set_yaw;

    char get; //大于1代表开火

    char shot; // ms
    float deal;//   ms

     //内存对齐
}NUC_data_t;
static NUC_data_t toSTM32;
//对STM32向NUC的信息解/编码
int encodeSTM32(STM32_data_t *target, unsigned char rx_buff[], unsigned int len);
int decodeSTM32(STM32_data_t *target, unsigned char tx_buff[], unsigned int len);
//对NUC向STM32的信息解/编码
int decodeNUC(NUC_data_t *target, unsigned char tx_buff[], unsigned int len);
int encodeNUC(NUC_data_t *target, unsigned char rx_buff[], unsigned int len);
#endif // NUC_COMMUNICATION_H
